package com.platform.system.domain.dto.device;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;

/**
 * @author Huangkai
 */
@Data
public class WebUserInfoDto implements UserDetails {
    /**
     * uid
     */
    private String uid;
    /**
     * 头像
     */
    private String logo;
    /**
     * 手机号
     * */
    private String phone;
    /**
     * 昵称
     * */
    private String nick;
    /**
     * openId
     * */
    private String openId;

    /**
     * 手机号类型
     * @return
     */
    private String zone;

    @Override
    public Collection<? extends GrantedAuthority> getAuthorities() {
        return null;
    }

    @Override
    public String getPassword() {
        return null;
    }

    @Override
    public String getUsername() {
        return null;
    }

    @Override
    public boolean isAccountNonExpired() {
        return false;
    }

    @Override
    public boolean isAccountNonLocked() {
        return false;
    }

    @Override
    public boolean isCredentialsNonExpired() {
        return false;
    }

    @Override
    public boolean isEnabled() {
        return false;
    }
}
